<?php
namespace app\controller;

use app\BaseController;
use think\response\Json;

class Test extends BaseController {

    public function index(): Json {

        $result = [
            "status" => 1,
            "message" => "ok",
            "result" => [
                "id" => 1,
            ]
        ];

        return json($result);
    }
}